﻿@model Drempelvrij.UI.Web.ViewModels.HomeViewModel

@{
    ViewBag.Title = "Rotterdam Drempelvrij";
}

<h1 class="page-title">Welkom</h1>
<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>


@using (Html.BeginForm("postRoute", "Home", FormMethod.Post))
{    
    <div id="route-form">
    <ul>
        <li>
            @Html.Label("Van:")
            @Html.TextBoxFor(m => m.from)
        </li>

        <li>
            @Html.Label("Naar:")
            @Html.TextBoxFor(m => m.destination) 
        </li>

        <li>
            <input id="Button1" type="submit" value="Toon Route opties" />
        </li>
        <br /><br />
         @Html.ValidationMessageFor(m => m.from)<br />
         @Html.ValidationMessageFor(m => m.destination)
    </ul>
    </div>
}